package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;
import com.itheima.reggie.domain.SetmealDish;

import java.util.List;

//套餐
public interface SetmealService {

    //分页+模糊查询
    Page<Setmeal> findByPage(Integer pageNum, Integer pageSize, String name);
    // 新增套餐
    void save(Setmeal setmeal);

    // 删除套餐
    void deleteBatch(List<Long> ids);

    //根据Id回显信息
    Setmeal findById(Long id);

    //修改套餐
    void update(Setmeal setmeal);

    //停售/启售
    void status(Integer status, List<Long> ids);

    //套餐展示
    List<Setmeal> findList(Long categoryId, Integer status);

    //查看套餐中的菜品
    List<SetmealDish> findDishById(Long id);
}
